<?php use_javascripts_for_form($form) ?>
<?php use_stylesheets_for_form($form) ?>
<form id="add_comment_form" action="<?php echo $action ?>" method="post">
<fieldset>
  <legend><?php echo __('Your comment') ?></legend>
  <?php echo $form->renderGlobalErrors() ?>
  <div class="form-row">
    <?php echo $form['name']->renderError() ?>
    <?php echo $form['name']->renderLabel() ?>
    <?php echo $form['name']->render(array('class' => 'comment-input', 'size' => 30)) ?>
  </div>
  <div class="form-row">
    <?php echo $form['email']->renderError() ?>
    <?php echo $form['email']->renderLabel() ?>
    <?php echo $form['email']->render(array('class' => 'comment-input', 'size' => 60)) ?>
  </div>
  <div class="form-row">
    <?php echo $form['source_content']->renderError() ?>
    <?php echo $form['source_content']->renderLabel(null, array('class' => 'hide-text')) ?>
    <?php echo $form['source_content']->render(array('cols' => 70, 'rows' => 10)) ?>
  </div>
  <?php if ('xprod' == sfConfig::get('sf_environment')) : ?>
  <div class="form-row-recaptcha">
    <?php echo $form['captcha']->renderError() ?>
    <?php echo $form['captcha']->render() ?>
  </div>
  <?php endif ?>
  <div class="form-row">
    <?php echo $form['follow_by_email']->renderError() ?>
    <?php echo $form['follow_by_email']->render() ?>
    <?php echo $form['follow_by_email']->renderLabel() ?>
  </div>
  <div class="form-row-recaptcha">
    <?php echo $form->renderHiddenFields() ?>
    <input type="submit" name="send" value="<?php echo __('Send your comment') ?>"/>
  </div>
</fieldset>
</form>